package com.radon.api;

import com.alibaba.dubbo.config.annotation.Reference;
import com.radon.service.DemoDubboService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("demo")
public class DemoApi {

    @Reference(version="1.0.0")
    private DemoDubboService demoDubboService;

    @GetMapping("get")
    public String get(Integer i){
        return demoDubboService.getDemo(i);
    }
}
